package com.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author TangHaoSong Fly ChenJie HeYuHang
 * @since 2024-05-15
 */
@TableName("purchase_order_details")
public class PurchaseOrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 采购明细id,主键,自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 采购订单id
     */
    private Integer purchaseId;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 采购数量
     */
    private Integer count;

    /**
     * 单价
     */
    private Float price;

    /**
     * 总价
     */
    private Float subtotal;

    /**
     * 入库标志，K001-1（等待入库）、K001-2（入库失败）、K001-2（入库成功）
     */
    private String gatherTag;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(Integer purchaseId) {
        this.purchaseId = purchaseId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Float getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(Float subtotal) {
        this.subtotal = subtotal;
    }

    public String getGatherTag() {
        return gatherTag;
    }

    public void setGatherTag(String gatherTag) {
        this.gatherTag = gatherTag;
    }

    @Override
    public String toString() {
        return "PurchaseOrderDetails{" +
            "id = " + id +
            ", purchaseId = " + purchaseId +
            ", productId = " + productId +
            ", count = " + count +
            ", price = " + price +
            ", subtotal = " + subtotal +
            ", gatherTag = " + gatherTag +
        "}";
    }
}
